home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / WinStat.idl < prev   
Encoding:
Text File  |  1997-01-01  |  4.4 KB  |  183 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #ifndef _WINSTAT_
  4. #define _WINSTAT_
  5.  
  6. #ifndef _ODOBJECT_
  7. #include "ODObject.idl"
  8. #endif
  9.  
  10. //=====================================================================================
  11. // Classes defined in this interface
  12. //=====================================================================================
  13.  
  14. interface  ODWindowState;
  15.  
  16. //=====================================================================================
  17. // Classes used by this interface
  18. //=====================================================================================
  19.  
  20. interface  ODCanvas;
  21. interface  ODDraft;
  22. interface  ODFacet;
  23. interface  ODFrame;
  24. interface  ODMenuBar;
  25. interface  ODPart;
  26. interface  ODShape;
  27. interface  ODTransform;
  28. interface  ODWindow;
  29. interface  ODWindowIterator;
  30. interface  ODWindowModule;
  31.  
  32.  
  33. //=====================================================================================
  34. // ODWindowState
  35. //=====================================================================================
  36.  
  37.  
  38. interface ODWindowState :  ODObject
  39. {
  40.  
  41.     ODWindow RegisterWindow(in ODPlatformWindow newWindow,
  42.                             in ODType frameType,
  43.                                in ODBoolean isRootWindow,
  44.                             in ODBoolean isResizable,
  45.                             in ODBoolean isFloating,
  46.                             in ODBoolean shouldSave,
  47.                             in ODBoolean shouldDispose,
  48.                             in ODPart rootPart,
  49.                             in ODTypeToken viewType,
  50.                             in ODTypeToken presentation,
  51.                             in ODFrame sourceFrame);
  52.  
  53.     ODWindow RegisterWindowForFrame(in ODPlatformWindow newWindow,
  54.                             in ODFrame frame,
  55.                                in ODBoolean isRootWindow,
  56.                             in ODBoolean isResizable,
  57.                             in ODBoolean isFloating,
  58.                             in ODBoolean shouldSave,
  59.                             in ODBoolean shouldDispose,
  60.                             in ODFrame sourceFrame);
  61.                             
  62.     ODWindow AcquireWindow(in ODID id);
  63.     
  64.     void Internalize(in ODDraft draft);
  65.     
  66.     void Externalize(in ODDraft draft);
  67.     
  68.     void SetDefaultWindowTitles(in ODDraft draft);
  69.  
  70.     void OpenWindows(in ODDraft draft);
  71.     
  72.     void CloseWindows(in ODDraft draft);
  73.     
  74.     ODUShort GetWindowCount();
  75.   
  76.     ODUShort GetRootWindowCount(in ODDraft draft);
  77.   
  78.     ODUShort GetTotalRootWindowCount();
  79.  
  80.     ODBoolean IsODWindow(in ODPlatformWindow aWindow);
  81.     
  82.     ODWindow  AcquireODWindow(in ODPlatformWindow aWindow);
  83.   
  84.     ODWindowIterator  CreateWindowIterator();
  85.     
  86.     ODWindow  AcquireActiveWindow();
  87.   
  88.     void SetBaseMenuBar(in ODMenuBar theMenuBar);
  89.   
  90.     ODMenuBar  CopyBaseMenuBar();
  91.  
  92.     void AdjustPartMenus();
  93.  
  94.     ODMenuBar CreateMenuBar(in ODPlatformMenuBar menuBar);
  95.  
  96.     ODCanvas CreateCanvas(in ODGraphicsSystem graphicsSystem,
  97.                           in ODPlatformCanvas platformCanvas,
  98.                           in ODBoolean isDynamic,
  99.                           in ODBoolean isOffscreen);
  100.  
  101.     ODFacet CreateFacet(in ODFrame frame,
  102.                         in ODShape clipShape,
  103.                         in ODTransform externalTransform,
  104.                         in ODCanvas canvas,
  105.                         in ODCanvas biasCanvas);
  106.  
  107. #ifdef _PLATFORM_MACINTOSH_
  108.  
  109.     ODMenuBar  AcquireCurrentMenuBar();
  110.     
  111.     ODMenuBar  AcquireBaseMenuBar();
  112.  
  113.     void DeactivateFrontWindows();
  114.     
  115.     void ActivateFrontWindows();
  116.     
  117.     ODWindow AcquireFrontWindow();
  118.     
  119.     ODWindow AcquireFrontFloatingWindow();
  120.     
  121.     ODWindow AcquireFrontRootWindow();
  122.     
  123.     void SetWindowModule( in ODWindowModule windowModule );
  124.  
  125. #endif //# _PLATFORM_MACINTOSH_
  126.  
  127.  
  128. #ifdef __SOMIDL__
  129. #ifdef _PLATFORM_MACINTOSH_
  130.     implementation
  131.       {
  132.         majorversion = 1; minorversion = 1;
  133.         
  134.           functionprefix = ODWindowState;
  135.  
  136.         override:
  137.             somUninit,
  138.             Purge;
  139.              
  140.        releaseorder:
  141.             RegisterWindow,
  142.             RegisterWindowForFrame,
  143.             AcquireWindow,
  144.             Internalize,
  145.             Externalize,
  146.             SetDefaultWindowTitles,
  147.             OpenWindows,
  148.             CloseWindows,
  149.             GetWindowCount,
  150.             GetRootWindowCount,
  151.             GetTotalRootWindowCount,
  152.             IsODWindow,
  153.             AcquireODWindow,
  154.             CreateWindowIterator,
  155.             AcquireActiveWindow,
  156.             SetBaseMenuBar,
  157.             CopyBaseMenuBar,
  158.             AdjustPartMenus,
  159.             CreateMenuBar,
  160.             CreateCanvas,
  161.             CreateFacet,
  162.  
  163.             AcquireCurrentMenuBar,
  164.             AcquireBaseMenuBar,
  165.             DeactivateFrontWindows,
  166.             ActivateFrontWindows,
  167.             AcquireFrontWindow,
  168.             AcquireFrontFloatingWindow,
  169.             AcquireFrontRootWindow,
  170.             reserved1, reserved2, reserved3, reserved4, reserved5, reserved6,
  171.             reserved7, reserved8, reserved9, reserved10, reserved11, reserved12,
  172.             reserved13, reserved14, reserved15, reserved16, reserved17, reserved18,
  173.             reserved19,reserved20,reserved21,reserved22,reserved23,reserved24,
  174.             SetWindowModule;
  175.         
  176.  
  177.   };
  178. #endif //# _PLATFORM_MACINTOSH_
  179. #endif //# __SOMIDL__
  180. };
  181.  
  182. #endif // _WINSTAT_
  183.